<template>
  <a-tooltip :title="title">
    <a-button :type="type"
              :icon="icon"
              @click.stop="handle" />
  </a-tooltip>
</template>
<script>
export default {
  components: {},
  data () {
    return {}
  },
  props: {
    title: String,
    type: {
      type: String,
      default: 'primary'
    },
    icon: {
      type: String,
      default: 'edit'
    }
  },
  mounted () { },
  methods: {
    handle () {
      this.$emit('click')
    }
  }
}
</script>
<style  scoped></style>
